package com.dfbz.bigdata.modules.system.controller;


import com.dfbz.bigdata.common.utils.R;
import com.dfbz.bigdata.modules.system.doman.DesignerService;
import com.dfbz.bigdata.modules.system.service.DesignerServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/service")
public class CommonServiceController {

    @Autowired
    private DesignerServiceService designerServiceService;


    @GetMapping("/{id}")
    public R<DesignerService> getByIdService(@PathVariable("id") Long id){

        DesignerService service = designerServiceService.getById(id);

        return R.success(service);
    }
}
